package com.bort.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bort.system.model.TDesk;
import com.bort.system.info.DeskInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TDeskMapper extends BaseMapper<TDesk> {

    int deleteByPrimaryKey(Integer id);
    int insertSelective(TDesk record);
    TDesk selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(TDesk record);
    int updateByPrimaryKey(TDesk record);

    List<DeskInfo> getDeskInfoList(@Param("map") Map<String,Object> map);
    List<DeskInfo> getDeskInfoList(Page<DeskInfo> page, @Param("map") Map<String,Object> map);

    DeskInfo getDeskInfoById(@Param("id") Integer id);

}